<div class="panel panel-default">

	<div class="panel-heading">公众号设置</div>
	<div class='panel-body' >
	    <div class="form-group" id="adtype" {if $item['gzh_reply_type']}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">触发关键词：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="keyword" class="form-control" value="{$item['keyword']}" />
				<span class='help-block' style="color:red;">*可设置触发关键词，用于挂到公众号菜单；</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 control-label">操作类型：</label>
			<div class="col-sm-9 col-xs-12">
			    <label class='radio-inline'>
	            	<input type='radio' value="4" name='gzh_reply_type' {if intval($item['gzh_reply_type'])=='4'}checked{/if}> 邀请海报设置
	            </label>
			    <label class='radio-inline'>
		  			<input type='radio' value="1" name='gzh_reply_type' {if intval($item['gzh_reply_type'])=='1'}checked{/if}> 回复H5图文链接
				</label>
				<label class='radio-inline'>
	            	<input type='radio' value="2" name='gzh_reply_type' {if intval($item['gzh_reply_type'])=='2'}checked{/if}> 回复小程序卡片
	            </label>
				<label class='radio-inline'>
	            	<input type='radio' value="3" name='gzh_reply_type' {if intval($item['gzh_reply_type'])=='3'}checked{/if}> 回复文字内容
	            </label>
			</div>
		</div>
		
		<div class="form-group" id="adtype3_1" {if $item['gzh_reply_type'] == 1}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">H5图文链接标题：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="link_title" class="form-control" value="{$item['link_title']}" />
			</div>
		</div>
		<div class="form-group" id="adtype3_2" {if $item['gzh_reply_type'] == 1}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">H5图文链接描述文字：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="link_desc" class="form-control" value="{$item['link_desc']}" />
			</div>
		</div>
		<div class="form-group" id="adtype3_3" {if $item['gzh_reply_type'] == 1}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">H5图文链接图片：</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_image('link_thumb', $item['link_thumb'], '', array('extras' => array('text' => 'readonly')))}
				<span class="help-block" style="color:red;">*推荐尺寸200*200</span>
			</div>
		</div>
		<div class="form-group" id="adtype3_4" {if $item['gzh_reply_type'] == 1}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">H5图文链接URL/内容管理id：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="link_url" class="form-control" value="{$item['link_url']}" />
				<span class="help-block" style="color:red;">*内容管理id请去内容管理查看，支持操作类型为：聚推客转链跳转小程序（美团、饿了么、拼多多）、聚推客转链客服回复H5、跳转小程序（美团、饿了么）、客服回复转链（电商）、电商商品/活动；</span>
			</div>
		</div>


		<div class="form-group" id="adtype4_1" {if $item['gzh_reply_type'] == 2}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">小程序卡片标题：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="card_title" class="form-control" value="{$item['card_title']}" />
			</div>
		</div>
		<div class="form-group" id="adtype4_2" {if $item['gzh_reply_type'] == 2}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">小程序卡片路径：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="card_path" class="form-control" value="{$item['card_path']}" />
			</div>
		</div>
		<div class="form-group" id="adtype4_3" {if $item['gzh_reply_type'] == 2}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">小程序卡片封面图片：</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_image('card_thumb', $item['card_thumb'], '', array('extras' => array('text' => 'readonly')))}
				<span class="help-block" style="color:red;">*图片尺寸：420*335</span>
			</div>
		</div>
		<div class="form-group" id="adtype5_1" {if $item['gzh_reply_type'] == 3}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">回复文字内容：</label>
			<div class="col-sm-9 col-xs-12">
				<textarea rows="5" class="form-control"  name="replay_text">{$item['replay_text']}</textarea>
				<span class="help-block" style="color:red;">*支持变量：[nickname]表示用户昵称</span>
				<span class="help-block" style="color:red;">*支持变量：[url]表示H5链接或者淘口令</span>
				<span class="help-block" style="color:red;">*打开小程序代码示例：<script type="text/html" style='display:block'><a href="" data-miniprogram-appid="你的小程序appid" data-miniprogram-path="打开小程序页面路径">点我天天领外卖红包</a></script></span>
				<span class="help-block" style="color:red;">*点击回复关键词代码示例：<script type="text/html" style='display:block'><a href="weixin://bizmsgmenu?msgmenucontent=美团外卖海报&msgmenuid=1">点我获取推广海报</a></script></span>
			</div>
		</div>
		<div class="form-group" id="adtype5_2" {if $item['gzh_reply_type'] == 3}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">变量[url]H5链接或者淘口令对应的内容管理id：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="url_id" class="form-control" value="{$item['url_id']}" />
				<span class="help-block" style="color:red;">*内容管理id请去内容管理查找，支持可转H5链接或者淘口令的内容跳转，如美团外卖红包、美团闪购红包、美团酒店红包、饿了么外卖红包、饿了么商超红包、聚推客美团红包（外卖、闪购、酒店）、聚推客电影票、聚推客肯德基、聚推客麦当劳、聚推客话费等；</span>
			</div>
		</div>
		<div class="form-group" id="adtype6_1" {if $item['gzh_reply_type'] == 4}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">海报生成等待文字：</label>
			<div class="col-sm-9 col-xs-12">
			    <input type="text" name="waittext" class="form-control" value="{$item['waittext']}" />
				<span class="help-block" style="color:red;">*例如：邀请海报生成中，请等待片刻...</span> 
			</div>
		</div>
		<div class="form-group" id="adtype6_2" {if $item['gzh_reply_type'] == 4}{else}style="display:none;"{/if}>
            <label class="col-xs-12 col-sm-2 control-label">海报生成成功文字：</label>
            <div class="col-sm-9 col-xs-12">
               <input type="text" name="oktext" class="form-control" value="{$item['oktext']}" />
               <span class="help-block" style="color:red;">*例如：邀请海报已生成！</span>
            </div>
        </div>
		<div class="form-group" id="adtype6_3" {if $item['gzh_reply_type'] == 4}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">扫码关注者推送消息：</label>
			<div class="col-sm-9 col-xs-12">
				<textarea rows="" cols="1" class="form-control"  name="sub_sendval">{$item['sub_sendval']}</textarea>
				<div class="help-block" style="color:red;">*给扫码关注者推送具体消息内容，内容代码：<br/>换行请用：\n\n<br/>网页链接：<script type="text/html" style='display:block'><a href="http://www.baidu.com">领取外卖红包教程</a></script><br/>小程序链接：<script type="text/html" style='display:block'><a href="" data-miniprogram-appid="你小程序的appid" data-miniprogram-path="pages/index/index（小程序路径）">外卖优惠券，平均每单再返1.5元</a></script><br/>点击发送内容：<script type="text/html" style='display:block'><a href="weixin://bizmsgmenu?msgmenucontent=小程序邀请海报&msgmenuid=1">点我获取邀请海报</a></script></div>
			</div>
		</div>
	</div>
</div>